package com.neborosoft.lib.events.update;

/**
 * Created with IntelliJ IDEA.
 * User: CM
 * Date: 06.12.12
 * Time: 23:47
 * To change this template use File | Settings | File Templates.
 */
public class UpdatableValue implements Updatable{
    private UpdateListener updateListener;

    @Override
    public void setUpdateListener(UpdateListener listener) {
        this.updateListener = listener;
    }

    @Override
    public void update() {
        if(updateListener != null){
            updateListener.onUpdate();
        }
    }
}
